<?php
    // initialize user and set its name and email address
    $user = new User();
    $user->name = "John Doe";
    $user->email = "john.doe@example.com";

    // show the email address
    echo($user->email. "\n");
    // show the name 
    echo($user->name . "\n");

    // remove the email address (this will cause an exception)
//    unset($user->email);

    // call a regular method
    echo($user->regular() . "\n");
//    $user->something();

    // call some pseudo-method
    echo($user->something() . "\n");
    //echo($user->myMethod(1, 2, 3, 4). "\n");
    //echo($user->whatever("a", "b"). "\n");

    // call some pseudo-method in a static context
   // echo(User::something() . "\n");
   // echo(User::myMethod() . "\n");
   // echo(User::whatever(). "\n");

    // call the object as if it was function
    //echo($user("parameter", "passed", "to", "invoke"). "\n");